
\documentclass{styles/beva}

\jmeno{Lukáš Michalík}
\nazev {???}
\skupina{EST}
\merenodne{6.3.10}
\odevzdanodne{13.3.10}
\cislo {4}
\predmet{Elektromagnetické vlny, anténa a vedení}

\usepackage[czech]{babel}
\usepackage[pdftex]{graphicx}
\usepackage{fancyhdr,multicol} %nastavení češtiny, fancy, grafiky, sloupce
\usepackage[utf8]{inputenc} %vstupni soubory v kodovani UTF-8
\usepackage[a4paper,text={15cm,22cm},centering]{geometry} %nastavení okrajů
\usepackage{ulem}
\usepackage{nonfloat}
\usepackage{graphics}


\begin{document}

% Here it is: the code that adjusts justification and spacing around caption.
\makeatletter
% http://www.texnik.de/floats/caption.phtml
% This does spacing around caption.
\setlength{\abovecaptionskip}{2pt}   % 0.5cm as an example
\setlength{\belowcaptionskip}{2pt}   % 0.5cm as an example
% This does justification (left) of caption.
\long\def\@makecaption#1#2{%
\vskip\abovecaptionskip
\sbox\@tempboxa{#1: #2}%
\ifdim \wd\@tempboxa >\hsize
#1: #2\par
\else
\global \@minipagefalse
\hb@xt@\hsize{\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip}
\makeatother


\maketitle

\def\refname{Literatura}
%\newcounter{octave}
%\newcommand{\octavepocet}{octave:\refstepcounter{octave}\theoctave> }
\newcommand{\degree}{\ensuremath{^\circ}}


%definice číslování odrážek ve stylu AD1) AD2)....
\newcounter{count_ad}
\setcounter{count_ad}{1}
\newcommand{\ad}{\item[\textbf{AD \arabic{count_ad}$_)$} \addtocounter{count_ad}{1}]}
%
\include{text/telo}


\end{document}
